-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testutil/compose: add definition version matrix test #833
Conversation
Codecov Report
@@ Coverage Diff @@
## main #833 +/- ##
==========================================
+ Coverage 54.78% 55.31% +0.53%
==========================================
Files 111 111
Lines 11425 11534 +109
==========================================
+ Hits 6259 6380 +121
+ Misses 4259 4233 -26
- Partials 907 921 +14
Continue to review full report at Codecov.
|
RunTmplFunc: func(data *compose.TmplData) { | ||
// Node 0 is latest | ||
pegImageTag(data.Nodes, 1, "v8.0.0") | ||
pegImageTag(data.Nodes, 2, "v7.0.0") | ||
pegImageTag(data.Nodes, 3, "v6.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-enabled this test
Name: "definition version matrix with dkg - v1.0.0", | ||
ConfigFunc: func(conf *compose.Config) { | ||
conf.KeyGen = compose.KeyGenDKG | ||
}, | ||
DefineTmplFunc: func(data *compose.TmplData) { | ||
// v8.0.0 of charon generates v1.0.0 defnition files. | ||
pegImageTag(data.Nodes, 0, "v8.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this test
@@ -147,11 +149,9 @@ func TestSmoke(t *testing.T) { | |||
} | |||
require.NoError(t, compose.WriteConfig(dir, conf)) | |||
|
|||
cmd := newAutoCmd(func(data *compose.TmplData) { | |||
data.MonitoringPorts = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull this config up to compose API, see disable-monitoring field.
@@ -68,19 +68,17 @@ services: | |||
|
|||
prometheus: | |||
image: prom/prometheus:latest | |||
{{if .MonitoringPorts}}ports: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of not binding ports, rather just don't run monitoring at all (since not used if bound). Also saves some resources since less containers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, we do not monitoring since we rely on alerts for health checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add a compose smoke test for backwards compatibility with v1.0.0 definition version.
Also enable run version matrix test again.
category: test
ticket: #710